class Parent {
  constructor(sex) {
    this.sex = sex;
    this.type = 'Human';
  }

  getSex() {
    console.log('Parent Sex:', this.sex);
  }
}

Parent.prototype.setType = function(type) {
  this.type = type;
}

class Child extends Parent {
  constructor(sex, name) {
    super(sex);
    this.name = name;
  }

  getSex() {
    console.log('Child Sex:', this.sex);
  }
}

const child = new Child('Male', 'Jason');
console.log(child);

child.setType('Animal');

console.log(child);